/**
 * 学籍管理
 */

import request from "@/utils/request.js"

// 获取学籍列表
export function getStudentStatusListApi(params) {
  return request({
    url: '/edu/schoolEducation/list',
    method: 'POST',
    params
  })
}

// 获取所属专业列表
export function getMajorListApi(params) {
  return request({
    url: '/edu/major/majorlistOfDrop-down',
    method: 'POST',
    params
  })
}

// 获取学年列表
export function getSchoolYearSemesterListApi() {
  return request({
    url: '/edu/schoolYearSemester/list',
    method: 'POST',
  })
}

// 根据id获取详情数据
export function getStudentStatusDetailApi(params) {
  return request({
    url: "/edu/schoolEducation/findByStudentId",
    method: 'POST',
    params
  })
}

// 修改
export function updateStudentStatusDetailApi(params) {
  return request({
    url: '/edu/schoolEducation/edit',
    method: 'POST',
    params
  })
}

// 删除
export function delStudentStatusDetailApi(params) {
  return request({
    url: '/edu/schoolEducation/remove',
    method: 'POST',
    params
  })
}

// 导出学籍数据
export function exportApi() {
  return request({
    url: '/edu/schoolEducation/export',
    responseType: 'blob',
    method: 'POST',
  })
}

